//
//  Passerelles.h
//  Truffle
//
//  Created by Ismaila Kredity on 08/02/10.
//  Copyright 2010 kredity. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatasTruffle.h"
//#import "RestConnectionDelegate.h"

@class ServiceDetailsViewController, FavoriteGatewayViewController;

//@interface Passerelles : UIViewController <RestConnectionDelegate> {
@interface ServiceListViewController : UIViewController {


	IBOutlet UITableView * tableView;
	NSMutableArray * gatewayList;
	NSArray * gatewayTypes;
	NSMutableArray *mutableServicesTable;
	NSMutableDictionary *gatewayToServicesMap;
	NSMutableDictionary *restToGatewayMap;
	NSMutableDictionary *sectionToGatewayNameMap;

	ServiceDetailsViewController  * serviceDetails;
	
	IBOutlet UIActivityIndicatorView *activityIndicator;
	
@private 
	RestConnection *restConnection;
	NSArray *servicesTableData;
}

@property(nonatomic,retain) NSMutableArray * gatewayList;

- (void)receiveNewServiceTable:(NSMutableArray *)servTable restURL:(NSString *)restconn;

@end
